package com.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.domain.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LikeDao extends BaseMapper<Like> {
    @Select("SELECT l_id from tb_like l where l.l_uid = #{uid} and l.l_object_type = 0 and l.l_object_id = #{objectId}")
    Integer hasLikeComment(Long uid,Long objectId);

}
